![]() |
MPCreateTimer |
||||
Header: | Multiprocessing.h | Carbon status: | Supported | |
Creates a timer.
OSStatus MPCreateTimer ( MPTimerID *timerID );
On return, the timerID contains the ID of the newly created timer.
A result code.
You can use a timer to notify an event, queue, or semaphore after a specified amount of time has elapsed.
Timer objects are created from dynamically-allocated internal resources. Other tasks may be competing for these resources so it is possible this function may not be able to create one.
To specify the notification mechanism to signal, use the function MPSetTimerNotify.
Also see the functions MPDeleteTimer and MPArmTimer.
Introduced with Multiprocessing Services 2.0.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)